//
//  MFMailResultListener.m
//  Unity-iPhone
//
//  Created by houshuo on 2019/2/27.
//

#import "MFMailResultListener.h"
#import "UnityAppController.h"

extern UnityAppController* _UnityAppController;

@implementation MFMailResultListener

- (void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error
{
    //关闭邮件发送窗口
    [_UnityAppController.rootViewController dismissViewControllerAnimated:YES completion:nil];
}

@end
